<div th:fragment="frag(list)">
	<div class="modal fade" th:id="|${list.app.domprefix}-${list.id}-modal-create-dictionary|">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">创建对象属性的同时创建视图属性</h4>
				</div>
				<div class="modal-body">
					<input type="hidden" name="app">
					<input type="hidden" name="viewproperty">
					<div class="box box-primary">
						<div class="box-body">
							<div class="form-group">
								<label class="control-label">名称</label>
								<input class="form-control" name="name" placeholder="请输入属性名称">
								<input type="hidden" name="cascade" value="true">
							</div>
							<div class="form-group" data-bigradio>
								<label class="control-label">新建方式（新建视图属性和属性时，同时新建或选择数据字典：）</label>
								<div class="row">
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="1" name="type" checked>字典选项名</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="2" name="type">字典选项名值</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="3" name="type">字典类型</label>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group hidden" data-bigradio-target="type.2">
								<label class="control-label">字典值（如有多个以英文逗号隔开，如果不填则默认为：01,02,03等）</label>
								<input class="form-control" name="dictionaryvalue" placeholder="请输入字典值">
							</div>
							<div class="form-group" data-bigradio-target="type.1,type.2">
								<label class="control-label">字典名称（如有多个以英文逗号隔开）</label>
								<input class="form-control" name="dictionaryname" placeholder="请输入字典名称">
							</div>
							<div class="form-group">
								<label class="control-label">字典类型</label>
								<input class="form-control" name="dictionarytype" placeholder="请输入数字字典的类型">
							</div>
						</div>
					</div>
					<div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="1" name="propertyselect"> 选择属性</label>
								</div>
								<div class="hidden" data-bigradio-target="propertyselect.1">
									<div class="form-group">
										<label class="control-label">属性</label>
										<select class="form-control" name='property' data-bigcombo-url="/meta/man/biz/property" data-bigcombo-autoload 
											th:data-bigcombo-object="${list.app.object.id}">
										</select>
									</div>
								</div>
							</div>
						</div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="list"
										name="viewtype"> 添加到列表</label>
								</div>
								<div class="hidden" data-bigradio-target="viewtype.list">
									<div class="form-group">
										<label class="control-label">控件</label>
										<select class="form-control" name='listinputtype'>
											<option value="hidden">hidden</option>
											<option value="textfield">textfield</option>
											<option value="icon">icon</option>
											<option value="dictionary" selected>dictionary</option>
										</select>
									</div>
									<div class="form-group">
										<label class="control-label">宽度</label>
										<div class="row">
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="50"
														name="listwidth">小</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="100"
														name="listwidth" checked>中</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="200"
														name="listwidth">大</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="300"
														name="listwidth">巨大</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="-1"
														name="listwidth">自适应</label>
												</div>
											</div>
										</div>
									</div>
									<label data-bigradio><input type="checkbox" value="1" name="order"> 排序</label>
									<label class="hidden" data-bigradio-target="order.1"><input type="radio" value="ASC" name="ordertype" checked> 升序</label>
									<label class="hidden" data-bigradio-target="order.1"><input type="radio" value="DESC" name="ordertype"> 降序</label>
								</div>
							</div>
						</div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="form" name="viewtype"> 添加到表单</label>
								</div>
								<div data-bigradio-target="viewtype.form" class="hidden">
									<div class="form-group">
										<label class="control-label">控件</label>
										<select class="form-control" name='forminputtype'>
											<option value="hidden">hidden</option>
											<option value="combo" selected>combo（单选）</option>
											<option value="radio">radio（单选）</option>
											<option value="checkbox">checkbox（多选）</option>
										</select>
									</div>
									<div class="form-group">
										<div class="checkbox">
											<label><input type="checkbox" name="required" value=1>  必填</label>
											<label><input type="checkbox" name="readonly" value=1>  只读</label>
											<label><input type="checkbox" name="submit" value=1 checked>  提交</label>
											<label><input type="checkbox" name="allform" value=1>  添加到所有表单</label>
										</div>
									</div>
									<div class="form-group">
										<label class="control-label">表单加载默认值</label>
										<div class="checkbox">
											<label><input type="checkbox" name="forminitreplaceempty" value=1>  空值时替换</label>
											<label><input type="checkbox" name="forminitreplacevalue" value=1>  非空时替换</label>
											<label><input name="forminitvalue" placeholder="请输入表单加载默认值"></label>
										</div>
									</div>
									<div class="form-group">
										<label class="control-label">表单提交默认值</label>
										<div class="checkbox">
											<label><input type="checkbox" name="formsubmitreplaceempty" value=1>  空值时替换</label>
											<label><input type="checkbox" name="formsubmitreplacevalue" value=1>  非空时替换</label>
											<label><input name="formsubmitvalue" placeholder="请输入表单提交默认值"></label>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="search"
										name="viewtype"> 添加到查询</label>
								</div>
								<div data-bigradio-target="viewtype.search" class="hidden">
									<div class="form-group">
										<label class="control-label">控件</label>
										<select class="form-control" name='searchinputtype'>
											<option value="hidden">hidden</option>
											<option value="combo" selected>combo（单选）</option>
											<option value="radio">radio（单选）</option>
											<option value="checkbox">checkbox（多选）</option>
										</select>
									</div>
									<div class="form-group" data-bigradio>
										<label class="control-label">查询类型</label>
										<div class="radio" >
											<label><input type="radio" name="comparetype" value="equal" checked> 完全匹配</label>
											<label><input type="radio" name="comparetype" value="select-expression"> 选择表达式匹配</label>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default pull-left"
						data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary fa fa-plus-circle">
						提交</button>
				</div>
			</div>
		</div>
	</div>
</div>
